home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2005 October / PCWOCT05.iso / Software / FromTheMag / Syn Text Editor 2.1.0.46 / synsetup-2.1.0.46.exe / {app} / scripts / loadps.vbs < prev    next >
Text File  |  2003-08-13  |  2KB  |  58 lines

  1. ' Caption: Load last Project|
  2. ' Hint: Load the last loaded Project|
  3. ' Icon: <The Icon from the Menuitem>|
  4.  
  5. '
  6. '  syn
  7. '  Copyright (C) 2000-2003, Ascher Stefan. All rights reserved.
  8. '  stievie@utanet.at, http://web.utanet.at/ascherst/
  9. '
  10. '  The contents of this file are subject to the Mozilla Public License
  11. '  Version 1.1 (the "License"); you may not use this file except in compliance
  12. '  with the License. You may obtain a copy of the License at
  13. '  http://www.mozilla.org/MPL/
  14. '
  15. '  Software distributed under the License is distributed on an "AS IS" basis,
  16. '  WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
  17. '  the specific language governing rights and limitations under the License.
  18. '
  19. '  The Original Code is loadps.vbs, released Thu, 11 Jul 2002 21:44:32 UTC.
  20. '
  21. '  The Initial Developer of the Original Code is Ascher Stefan.
  22. '  Portions created by Ascher Stefan are Copyright (C) 2000-2003 Ascher Stefan.
  23. '  All Rights Reserved.
  24. '
  25. '  Contributor(s): .
  26. '
  27. '  Alternatively, the contents of this file may be used under the terms of the
  28. '  GNU General Public License Version 2 or later (the "GPL"), in which case
  29. '  the provisions of the GPL are applicable instead of those above.
  30. '  If you wish to allow use of your version of this file only under the terms
  31. '  of the GPL and not to allow others to use your version of this file
  32. '  under the MPL, indicate your decision by deleting the provisions above and
  33. '  replace them with the notice and other provisions required by the GPL.
  34. '  If you do not delete the provisions above, a recipient may use your version
  35. '  of this file under either the MPL or the GPL.
  36. '
  37. '  You may retrieve the latest version of this file at the syn home page,
  38. '  located at http://syn.sourceforge.net/
  39. '
  40. ' $Id: loadps.vbs,v 1.3.2.5 2003/08/13 00:38:45 neum Exp $
  41. '
  42. ' ScriptEngine=VBScript
  43.  
  44. option explicit
  45.  
  46. ' Remove the dot to include this file(s)
  47. '#.include <consts>
  48. '#include <cmnfunc>
  49.  
  50. sub Main(dummy)
  51.   dim pf
  52.   pf = Project.Recent(0)
  53.   if FileExists(pf) then
  54.     Project.Open false, pf
  55.   end if
  56. end sub
  57.  
  58.